import request from "@/utils/request";
export function getList(params) {
  return request({
    url: "/api/czCate/getList",
    method: "GET",
    params,
  });
}
export function change(data) {
  return request({
    url: "/api/czCate/change",
    method: "POST",
    data,
  });
}
export function add(data) {
  return request({
    url: "/api/czCate/add",
    method: "POST",
    data,
  });
}
export function del(id) {
  return request({
    url: "/api/czCate/del",
    method: "POST",
    data: { id },
  });
}

export function getAllList(params) {
  return request({
    url: "/api/czCate/getAll",
    method: "get",
    params
  });
}
export function getProductList(params) {
  return request({
    url: "/api/czSpec/getAllProductList",
    method: "get",
    params
  });
}

